<template>
  <!-- hvps111明细-->
  <el-dialog :title="title" center :visible.sync="openState" width="1024px" :close-on-click-modal="false">
    <el-form ref="form" :model="form" label-width="110px" :disabled="true">
      <el-card class="form-card txnInfo-card">
        <div slot="header" class="label-header-msg">
          <span>交易基础信息</span>
        </div>
        <el-row>
          <el-col :span="8">
            <el-form-item label="交易流水号" prop="id">
              <el-input v-model="form.id"/>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="明细标识号" prop="dtlNo">
              <el-input v-model="form.dtlNo"/>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="包批次号" prop="btId">
              <el-input v-model="form.btId"/>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="8">
            <el-form-item label="报文标识号" prop="pkgId">
              <el-input v-model="form.pkgId"/>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="行内流水号" prop="internalId1">
              <el-input v-model="form.internalId1"/>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="账户类型" prop="custflag1">
              <el-select v-model="form.custflag1" placeholder="账户类型">
                <el-option
                  v-for="dict in dictMap.CUST_FLAG1"
                  :key="dict.value"
                  :label="`${dict.value}-${dict.text}`"
                  :value="dict.value"
                ></el-option>
              </el-select>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="8">
            <el-form-item label="CPG日期" prop="cpgdate">
              <el-date-picker v-model="form.cpgdate" style="width: 100%;" type="date" value-format="yyyyMMdd"/>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="工作日期" prop="workdate">
              <el-date-picker v-model="form.workdate" style="width: 100%;" type="date" value-format="yyyyMMdd"/>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="记账标志" prop="cbflag">
              <el-select v-model="form.cbflag" placeholder="记账标志">
                <el-option
                  v-for="dict in dictMap.CBFLAG"
                  :key="dict.value"
                  :label="`${dict.value}-${dict.text}`"
                  :value="dict.value"
                ></el-option>
              </el-select>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="8">
            <el-form-item label="交易渠道" prop="source">
              <el-select v-model="form.source" placeholder="柜面交易">
                <el-option
                  v-for="dict in dictMap.TXN_SOURCE"
                  :key="dict.value"
                  :label="`${dict.value}-${dict.text}`"
                  :value="dict.value"
                ></el-option>
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="业务类型" prop="bizTypeCode">
              <el-select v-model="form.bizTypeCode" placeholder="业务类型">
                <el-option
                  v-for="dict in dictMap.BIZ_TYPE"
                  :key="dict.value"
                  :label="`${dict.value}-${dict.text}`"
                  :value="dict.value"
                ></el-option>
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="业务种类" prop="bizCtgyCode">
              <el-select v-model="form.bizCtgyCode" placeholder="业务种类">
                <el-option
                  v-for="dict in dictMap.BIZ_CTGY"
                  :key="dict.value"
                  :label="`${dict.value}-${dict.text}`"
                  :value="dict.value"
                ></el-option>
              </el-select>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
<!--          <el-col :span="8">-->
<!--            <el-form-item label="业务状态" prop="status">-->
<!--              <el-select v-model="form.status" placeholder="业务状态">-->
<!--                <el-option-->
<!--                  v-for="dict in dictMap.CP2_STATUS"-->
<!--                  :key="dict.value"-->
<!--                  :label="`${dict.value}-${dict.text}`"-->
<!--                  :value="dict.value"-->
<!--                ></el-option>-->
<!--              </el-select>-->
<!--            </el-form-item>-->
<!--          </el-col>-->
<!--          <el-col :span="8">
            <el-form-item label="交易渠道" prop="transSource">
              <el-input v-model="form.transSource" :disabled="true" placeholder="柜面交易" style="width: 195px"/>
            </el-form-item>
          </el-col>-->
          <el-col :span="8">
            <el-form-item label="交易币种" prop="curcd">
              <el-input v-model="form.curcd" placeholder="人民币-CNY" :disabled="true" style="width: 195px"/>
            </el-form-item>
          </el-col>
        </el-row>
      </el-card>
      <!--付款人信息-->
      <el-card class="form-card payerInfo-card">
        <div slot="header" class="label-header-msg">
          <span>付款人信息</span>
        </div>
        <el-row :gutter="10">
          <el-col :span="12">
            <el-form-item label="付款人账号" prop="payerActno">
              <el-input v-model="form.payerActno" placeholder="付款人账号"/>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-form-item label="付款人名称" prop="payerName">
            <el-input v-model="form.payerName" placeholder="付款人名称"/>
          </el-form-item>
        </el-row>
        <el-row>
          <el-form-item label="付款人地址" prop="payerAddr">
            <el-input v-model="form.payerAddr" placeholder="付款人地址"/>
          </el-form-item>
        </el-row>
        <el-row :gutter="10">
          <el-col :span="8">
            <div class="grid-payer">
              <el-form-item label="付款行行号" prop="payerBrno">
                <el-input v-model="form.payerBrno" placeholder="付款行行号"/>
              </el-form-item>
            </div>
          </el-col>

          <el-col :span="16">
            <el-form-item label="付款行行名" prop="payerBrname" label-width="130px">
              <el-input v-model="form.payerBrname" placeholder="付款行行名"/>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="10">
          <el-col :span="8">
            <div class="grid-payer">
              <el-form-item label="付款人开户行号" prop="payerAccBrno">
                <el-input v-model="form.payerAccBrno" placeholder="付款人开户行行号"/>
              </el-form-item>
            </div>
          </el-col>
          <el-col :span="16">
            <el-form-item label="付款人开户行行名" prop="payerAccBrname" label-width="130px">
              <el-input v-model="form.payerAccBrname" placeholder="付款人开户行行名"/>
            </el-form-item>
          </el-col>
        </el-row>
      </el-card>
      <!--收款人信息-->
      <el-card class="form-card payeeInfo-card">
        <div slot="header" class="label-header-msg">
          <span>收款人信息</span>
        </div>
        <el-row :gutter="10">
          <el-col :span="12">
            <div class="grid-payee">
              <el-form-item label="收款人账号" prop="payeeActno">
                <el-input v-model="form.payeeActno" placeholder="收款人账号"/>
              </el-form-item>
            </div>
          </el-col>
        </el-row>
        <el-form-item label="收款人名称" prop="payeeName">
          <el-input v-model="form.payeeName" placeholder="收款人名称"/>
        </el-form-item>
        <el-form-item label="收款人地址" prop="payeeAddr">
          <el-input v-model="form.payeeAddr" placeholder="收款人地址"/>
        </el-form-item>
        <el-row :gutter="10">
          <el-col :span="8">
            <div class="grid-payee">
              <el-form-item label="收款行行号" prop="payeeBrno">
                <el-input v-model="form.payeeBrno" placeholder="收款行行号"/>
              </el-form-item>
            </div>
          </el-col>
          <el-col :span="16">
            <el-form-item label="收款行行名" prop="payeeBrname" label-width="130px">
              <el-input v-model="form.payeeBrname" placeholder="收款行行名"/>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="10">
          <el-col :span="8">
            <div class="grid-payee">
              <el-form-item label="收款人开户行号" prop="payeeAccBrno">
                <el-input v-model="form.payeeAccBrno" placeholder="收款人开户行行号"/>
              </el-form-item>
            </div>
          </el-col>
          <el-col :span="16">
            <el-form-item label="收款人开户行行名" prop="payeeAccBrname" label-width="130px">
              <el-input v-model="form.payeeAccBrname" placeholder="收款人开户行行名"/>
            </el-form-item>
          </el-col>
        </el-row>
      </el-card>
      <!--其他信息-->
      <el-card class="form-card payOtherInfo-card">
        <div slot="header" class="label-header-msg">
          <span>其他交易信息</span>
        </div>
        <el-row>
          <el-col :span="8">
            <el-form-item label="交易金额" prop="amount">
              <ht-amount-input v-model="form.amount" placeholder="交易金额" style="width: 195px"></ht-amount-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="大写金额" prop="bAmount">
              <ht-amount-upper :inputValue="form.amount" placeholder="交易金额" style="width: 195px"></ht-amount-upper>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="手续费金额" prop="feeAmount">
              <el-tooltip :content="form.feeAmountRemarks" placement="top-start" :disabled="form.feeAmountRemarks===''||form.feeAmountRemarks===null||form.feeAmountRemarks===undefined">
                <ht-amount-input
                  v-model="form.feeAmount"
                  placeholder="手续费金额"
                ></ht-amount-input>
              </el-tooltip>
            </el-form-item>

          </el-col>
        </el-row>
<!--        <el-row :gutter="10">
          <el-col :span="8">
            <div class="grid-otherInfo">
              <el-form-item label="中介机构1" prop="agency1">
                <el-input v-model="form.agency1" placeholder="中介机构1"/>
              </el-form-item>
            </div>
          </el-col>
          <el-col :span="16">
            <el-form-item label="中介机构1名称" prop="agency1name" label-width="130px">
              <el-input v-model="form.agency1name" placeholder="中介机构1名称"/>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="10">
          <el-col :span="8">
            <div class="grid-otherInfo">
              <el-form-item label="中介机构2" prop="agency2">
                <el-input v-model="form.agency2" placeholder="中介机构2"/>
              </el-form-item>
            </div>
          </el-col>

          <el-col :span="16">
            <el-form-item label="中介机构2名称" prop="agency2name" label-width="130px">
              <el-input v-model="form.agency2name" placeholder="中介机构2名称"/>
            </el-form-item>
          </el-col>
        </el-row>-->
<!--        <el-row>-->
<!--          <el-col :span="24">-->
<!--            <div class="grid-otherInfo">-->
<!--              <el-form-item label="备注" prop="remarks">-->
<!--                <el-input type="textarea" v-model="form.remarks" placeholder="备注" maxlength="140" show-word-limit/>-->
<!--              </el-form-item>-->
<!--            </div>-->
<!--          </el-col>-->
<!--        </el-row>-->
        <el-row>
          <el-col :span="24">
            <div class="grid-otherInfo">
              <el-form-item label="附言" prop="remarks">
                <el-input type="textarea" v-model="form.remarks" placeholder="附言" maxlength="210" show-word-limit/>
              </el-form-item>
            </div>
          </el-col>
        </el-row>
      </el-card>
      <!--附加信息域 根据业务类型，动态显示或隐藏-->
      <el-card class="form-card payAddInfo-card" v-show="form.bizTypeCode === 'A109'">
        <div slot="header" class="label-header-msg">
          <span>委托收款 （划回）</span>
        </div>
        <el-row :gutter="10">
          <el-col :span="8">
            <el-form-item label="票据日期" prop="noteDate" label-width="150px">
              <el-input v-model="form.noteDate" placeholder="票据日期"/>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="票据号码" prop="noteNumber" label-width="110px">
              <el-input v-model="form.noteNumber" placeholder="票据号码"/>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="票据种类" prop="noteType">
              <el-select v-model="form.noteType" placeholder="票据种类">
                <el-option
                  v-for="dict in dictMap.NOTE_TYPE"
                  :key="dict.value"
                  :label="`${dict.value}-${dict.text}`"
                  :value="dict.value"
                ></el-option>
              </el-select>
            </el-form-item>
          </el-col>
        </el-row>
      </el-card>
      <el-card class="form-card payAddInfo-card" v-show="form.bizTypeCode === 'A110'">
        <div slot="header" class="label-header-msg">
          <span>托收承付 （划回）</span>
        </div>
        <el-row>
          <el-col :span="8">
            <el-form-item label="票据日期" prop="noteDate" label-width="110px">
              <el-date-picker
                style="width: 185px"
                v-model="form.noteDate"
                type="date"
                placeholder="票据日期"
                value-format="yyyyMMdd"
              ></el-date-picker>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="票据号码" prop="noteNumber" label-width="110px">
              <el-input v-model="form.noteNumber" placeholder="票据号码" style="width: 185px"/>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="支付金额" prop="payAmount" label-width="110px">
              <el-input v-model="form.payAmount" placeholder="支付金额" style="width: 185px"/>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="8">
            <el-form-item label="原托金额" prop="oriAmount" label-width="110px">
              <el-input v-model="form.oriAmount" placeholder="原托金额" style="width: 185px"/>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="拒付金额" prop="rejectAmount" label-width="110px">
              <el-input v-model="form.rejectAmount" placeholder="拒付金额" style="width: 185px"/>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="赔偿金额" prop="amendsAmount" label-width="110px">
              <el-input v-model="form.amendsAmount" placeholder="赔偿金额" style="width: 185px"/>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="多付金额" prop="addAmount" label-width="110px">
              <el-input v-model="form.addAmount" placeholder="多付金额" style="width: 185px"/>
            </el-form-item>
          </el-col>
        </el-row>
      </el-card>
      <el-card class="form-card payAddInfo-card" v-show="form.bizTypeCode === 'A111'">
        <div slot="header" class="label-header-msg">
          <span>商业汇票附加域信息</span>
        </div>
        <el-row>
          <el-col :span="8">
            <el-form-item label="申请人账号" prop="applyAccount" label-width="110px">
              <el-input v-model="form.applyAccount" placeholder="申请人账号" style="width: 185px"/>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="申请人名称" prop="applyName" label-width="110px">
              <el-input v-model="form.applyName" placeholder="申请人名称" style="width: 185px"/>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="票据日期" prop="noteDate" label-width="110px">
              <el-date-picker
                style="width: 185px"
                v-model="form.noteDate"
                type="date"
                placeholder="票据日期"
                value-format="yyyyMMdd"
              ></el-date-picker>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="8">
            <el-form-item label="出票金额" prop="draftAmount" label-width="110px">
              <el-input v-model="form.draftAmount" placeholder="出票金额" style="width: 185px"/>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="实际结算金额" prop="settlementAmount" label-width="110px">
              <el-input v-model="form.settlementAmount" placeholder="实际结算金额" style="width: 185px"/>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="多付金额" prop="oddAmount" label-width="110px">
              <el-input v-model="form.oddAmount" placeholder="多付金额" style="width: 185px"/>
            </el-form-item>
          </el-col>
        </el-row>
      </el-card>
      <el-card class="form-card payAddInfo-card" v-show="form.bizTypeCode === 'A113'">
        <div slot="header" class="label-header-msg">
          <span>跨境支付附加域信息</span>
        </div>
        <el-row>
          <el-col :span="12">
            <el-form-item label="关联业务委托日期" prop="cbBizAssocBizDate" label-width="110px">
              <el-date-picker
                style="width: 185px"
                v-model="form.cbBizAssocBizDate"
                type="date"
                placeholder="关联业务委托日期"
                value-format="yyyyMMdd"
              ></el-date-picker>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="费用编码" prop="cbBizFeeCode" label-width="110px">
              <el-input v-model="form.cbBizFeeCode" placeholder="费用编码" style="width: 185px"/>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="发报行的收费" prop="cbBizSndBnkFee" label-width="110px">
              <el-input v-model="form.cbBizSndBnkFee" placeholder="发报行的收费" style="width: 185px"/>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="收报行的收费" prop="payAddInfo" label-width="110px">
              <el-input v-model="form.payAddInfo" placeholder="收报行的收费" style="width: 185px"/>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="24">
            <div class="grid-otherInfo">
              <el-form-item label="跨境业务附言" prop="cbBizRemark">
                <el-input type="textarea" v-model="form.cbBizRemark" placeholder="跨境业务附言" maxlength="210"
                          show-word-limit/>
              </el-form-item>
            </div>
          </el-col>
        </el-row>
      </el-card>
      <el-card class="form-card payAddInfo-card" v-show="form.bizTypeCode === 'A201'">
        <div slot="header" class="label-header-msg">
          <span>支票附加域信息</span>
        </div>
        <el-row>
          <el-col :span="8">
            <el-form-item label="出票日期" prop="checkNotesDate" label-width="110px">
              <el-date-picker
                style="width: 185px"
                v-model="form.checkNotesDate"
                type="date"
                placeholder="出票日期"
                value-format="yyyyMMdd"
              ></el-date-picker>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="出票人名称" prop="checkAppName" label-width="110px">
              <el-input v-model="form.checkAppName" placeholder="出票人名称" style="width: 185px"/>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="票据张数" prop="checkNotesNum" label-width="110px">
              <el-input v-model="form.checkNotesNum" placeholder="票据张数" style="width: 185px"/>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="8">
            <el-form-item label="票据金额" prop="checkNotesAmount" label-width="110px">
              <el-input v-model="form.checkNotesAmount" placeholder="票据金额" style="width: 185px"/>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="牌价" prop="checkExchage" label-width="110px">
              <el-input v-model="form.checkExchage" placeholder="牌价" style="width: 185px"/>
            </el-form-item>
          </el-col>
        </el-row>
      </el-card>
      <el-card class="form-card payAddInfo-card" v-show="form.bizTypeCode === 'A202'">
        <div slot="header" class="label-header-msg">
          <span>汇票资金移存附加域信息</span>
        </div>
        <el-row>
          <el-col :span="8">
            <el-form-item label="出票日期" prop="checkNotesDate" label-width="110px">
              <el-date-picker
                style="width: 185px"
                v-model="form.checkNotesDate"
                type="date"
                placeholder="出票日期"
                value-format="yyyyMMdd"
              ></el-date-picker>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="票据号码" prop="e2eId" label-width="110px">
              <el-input v-model="form.e2eId" placeholder="票据号码" style="width: 185px"/>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="汇票密押" prop="dftKey" label-width="110px">
              <el-input v-model="form.dftKey" placeholder="汇票密押" style="width: 185px"/>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="8">
            <el-form-item label="票据种类" prop="dftCtgy" label-width="110px">
              <el-input v-model="form.dftCtgy" placeholder="票据种类" style="width: 185px"/>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="现金汇票兑付行" prop="dftPayBrno" label-width="110px">
              <el-input v-model="form.dftPayBrno" placeholder="现金汇票兑付行" style="width: 185px"/>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="收款人名称" prop="dftPayerName" label-width="110px">
              <el-input v-model="form.dftPayerName" placeholder="收款人名称" style="width: 185px"/>
            </el-form-item>
          </el-col>
        </el-row>
      </el-card>
      <el-card class="form-card payAddInfo-card" v-show="form.bizTypeCode === 'A203'">
        <div slot="header" class="label-header-msg">
          <span>银行汇票附加域信息</span>
        </div>
        <el-row>
          <el-col :span="8">
            <el-form-item label="出票日期" prop="issueDate" label-width="110px">
              <el-date-picker
                style="width: 185px"
                v-model="form.issueDate"
                type="date"
                placeholder="出票日期"
                value-format="yyyyMMdd"
              ></el-date-picker>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="申请人账号" prop="applyAccount" label-width="110px">
              <el-input v-model="form.applyAccount" placeholder="申请人账号" style="width: 185px"/>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="申请人名称" prop="applyName" label-width="110px">
              <el-input v-model="form.applyName" placeholder="申请人名称" style="width: 185px"/>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="8">
            <el-form-item label="出票金额" prop="draftAmount" label-width="110px">
              <el-input v-model="form.draftAmount" placeholder="出票金额" style="width: 185px"/>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="实际结算金额" prop="settlementAmount" label-width="110px">
              <el-input v-model="form.settlementAmount" placeholder="实际结算金额" style="width: 185px"/>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="多余金额" prop="oddAmount" label-width="110px">
              <el-input v-model="form.oddAmount" placeholder="多余金额" style="width: 185px"/>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="8">
            <el-form-item label="汇票种类" prop="draftType" label-width="110px">
              <el-select v-model="form.draftType" placeholder="汇票种类" style="width: 185px" disabled>
                <el-option
                  v-for="dict in dictMap.DFT_CTGY"
                  :key="dict.value"
                  :label="`${dict.value}-${dict.text}`"
                  :value="dict.value"
                ></el-option>
              </el-select>
            </el-form-item>
          </el-col>
        </el-row>
      </el-card>
      <el-card class="form-card payAddInfo-card" v-show="form.bizTypeCode === 'A204'">
        <div slot="header" class="label-header-msg">
          <span>银行本票附加域信息</span>
        </div>
        <el-row>
          <el-col :span="8">
            <el-form-item label="出票日期" prop="issueDate" label-width="110px">
              <el-date-picker
                style="width: 185px"
                v-model="form.issueDate"
                type="date"
                placeholder="出票日期"
                value-format="yyyyMMdd"
              ></el-date-picker>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="申请人账号" prop="applyAccount" label-width="110px">
              <el-input v-model="form.applyAccount" placeholder="申请人账号" style="width: 185px"/>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="申请人名称" prop="applyName" label-width="110px">
              <el-input v-model="form.applyName" placeholder="申请人名称" style="width: 185px"/>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="8">
            <el-form-item label="出票金额" prop="draftAmount" label-width="110px">
              <el-input v-model="form.draftAmount" placeholder="出票金额" style="width: 185px"/>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="实际结算金额" prop="settlementAmount" label-width="110px">
              <el-input v-model="form.settlementAmount" placeholder="实际结算金额" style="width: 185px"/>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="多余金额" prop="oddAmount" label-width="110px">
              <el-input v-model="form.oddAmount" placeholder="多余金额" style="width: 185px"/>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="8">
            <el-form-item label="票据种类" prop="bankNoteType"  label-width="110px">
              <el-select v-model="form.bankNoteType" placeholder="票据种类" style="width: 185px">
                <el-option
                  v-for="dict in dictMap.BANK_NOTE_TYPE"
                  :key="dict.value"
                  :label="`${dict.value}-${dict.text}`"
                  :value="dict.value"
                ></el-option>
              </el-select>
            </el-form-item>
          </el-col>
        </el-row>
      </el-card>
      <el-card class="form-card payAddInfo-card" v-if="form.bizTypeCode === 'A301'">
        <div slot="header" class="label-header-msg">
          <span>缴费业务附加数据域</span>
        </div>
        <el-row>
          <el-col :span="12">
            <div class="grid-payAddInfo">
              <el-form-item label="收费单位流水号" prop="unitNumber" label-width="110px">
                <el-input v-model="form.unitNumber" placeholder="收费单位流水号"/>
              </el-form-item>
            </div>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="所属期间" prop="term" label-width="110px">
              <el-date-picker
                v-model="form.term"
                type="daterange"
                range-separator="-"
                start-placeholder="开始日期"
                end-placeholder="结束日期"
                value-format="yyyyMMdd"
              ></el-date-picker>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="缴费类型" prop="payType">
              <el-select v-model="form.payType" placeholder="缴费类型">
                <el-option
                  v-for="dict in dictMap.PAY_TYPE"
                  :key="dict.value"
                  :label="`${dict.value}-${dict.text}`"
                  :value="dict.value"
                ></el-option>
              </el-select>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="24">
            <div class="grid-otherInfo">
              <el-form-item label="收费附言" prop="payRemark">
                <el-input
                  type="textarea"
                  v-model="form.payRemark"
                  placeholder="收费附言"
                  maxlength="210"
                  show-word-limit
                />
              </el-form-item>
            </div>
          </el-col>
        </el-row>
      </el-card>

    </el-form>

    <el-form ref="queryDetailForm121" :model="form" label-width="110px" :disabled="true">
      <query-detail-inter-info
        ref="detailInterInfo"
        :dataDetail="this.form"
        :dictMap="dictMap"
      ></query-detail-inter-info>
    </el-form>
    <div slot="footer" class="dialog-footer">
      <el-button @click="handleClose">关闭</el-button>
    </div>
  </el-dialog>
</template>
<script>
import CardForm from "@/views/components/CardForm";
import {detail} from "@/api/cnaps/baseBiz/send/sendCommon.js";
import HtAmountInput from "@/views/components/HtAmountInput";
import HtAmountUpper from "@/views/components/HtAmountUpper";
import QueryDetailInterInfo from "./queryDetailInterInfo";

export default {
  name: "QueryDetailDialog",
  components: {
    CardForm,
    HtAmountInput,
    HtAmountUpper,
    QueryDetailInterInfo,
  },
  props: {
    dictMap: {
      type: Object,
      default: () => {
        return {};
      },
    },
  },
  data() {
    return {
      busTypeList: [],
      id: "",
      pkgNo: "",
      title: "",
      // 是否显示弹出层
      openState: false,
      // 表单参数
      form: {
        amount: "0.00",
      },
    };
  },
  mounted() {
  },
  methods: {
    // 关闭回掉
    handleClose() {
      this.openState = false;
    },
    show(id, pkgNo) {
      let that = this;
      if (id) {
        this.title = "小额客户发起贷记明细";
        detail({
          coreId: id,
          pkgNo: pkgNo,
        }).then((res) => {
          this.$set(this, "form", res.result.detail6409DataModel);
          this.$set(this.form,"term",[this.form.term1,this.form.term2])
          this.openState = true;
        });
      }
    },

    cancel() {
      this.openState = false;
    },
  },
};
</script>
<style>
.label-header-msg {
  font-weight: bold;
}

.form-card {
  margin-bottom: 10px;
}
</style>
